package com.daikit.commons.shared.exception.utils;

/**
 * Message formatter
 *
 * @author tcaselli
 * @version $Revision$ Last modifier: $Author$ Last commit: $Date$
 */
public interface DkMessageFormatter
{

	/**
	 * Formats arguments given in placeholders like {0} , {1} ...
	 * 
	 * @param code
	 *           the error code
	 * @param toFormat
	 *           the string to format that can contain placeholders for values to be replaced by arguments.
	 * @param arguments
	 *           the arguments to be replaced
	 * @return a formatted string
	 */
	String format(String code, final String toFormat, final Object... arguments);

}
